package com.study.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.PostConstruct;

/**
 * @program: shouxieSpring
 * @author: jzhou
 * @date: 2022-04-13 22:10
 * @version: 1.0
 * @description: fuwu
 **/
@Component
public class UserServiceBase {

    @Autowired
    private JdbcTemplate jdbcTemplate;

    @Transactional(propagation = Propagation.NEVER)
    public void b(){
        jdbcTemplate.execute("");
    }

}
